const express = require('express');
const router = express.Router();
const authController = require('../controllers/authController');
const { authenticateToken } = require('../middleware/auth');

// 登录路由
router.post('/login', authController.login);

// 修改密码路由 (需要认证)
router.post('/change-password', authenticateToken, authController.changePassword);

module.exports = router; 